package com.fesine.ch01.lesson07;

/**
 * Created by Fesine on 2016/6/27.
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        super.run();
        for (int i = 0; i < 50000; i++) {

            System.out.println("i = " +(i+1) +" time:" +System.currentTimeMillis());
        }
    }

    public static void main(String[] args) throws InterruptedException {
        MyThread thread = new MyThread();
        thread.start();
        Thread.sleep(2000);
        thread.interrupt();
    }
}
